meson.build: Check for F16C on 32-bit Visual Studio
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 12 Apr 2021 09:58:46 +0000 (17:58 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 12 Apr 2021 10:13:42 +0000 (18:13 +0800)
It is also possible to enable F16C instructions on 32-bit Visual Studio builds,
so also check for the compiler's ability to build F16C code on Visual Studio
32-bit instead of just bailing out.

meson.build

index 902bd72031f026bb85ed39a951f106e9c8df2758..26cda67aba8829a27827b3808ca214c179a93918 100644 (file)
@@ -692,10 +692,8 @@ if get_option('f16c').enabled()
 # if !defined(__amd64__) && !defined(__x86_64__)
 #   error "F16C intrinsics are only available on x86_64"
 # endif
-#elif defined (_MSC_VER) && !defined (_M_X64) && !defined (_M_AMD64)
-# error "F16C intrinsics not supported on x86 MSVC builds"
 #endif
-#if defined(__SSE__) || (_M_X64 > 0)
+#if defined(__SSE__) || defined(_MSC_VER)
 # include <immintrin.h>
 #else
 # error "No F16C intrinsics available"